package com.sky.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.annotation.AutoFill;
import com.sky.entity.Category;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    // 新增分类
    @Override
    @AutoFill(OperationType.INSERT)
    int insert(Category category);

    // 根据id修改分类
    @AutoFill(OperationType.UPDATE)
    void update(Category category);

}
